package cn.itcast.mapper;

import cn.itcast.domain.Items;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ItemsMapper {

    @Select("select * from items where id in(select items_id from orderdetail where orders_id = #{oid})")
    List<Items> findByOid(int oid);
}
